package org.javaboy.demo.dao;

import org.apache.ibatis.annotations.Select;
import org.javaboy.demo.model.Orders;

import java.util.List;

public interface OrdersMapper {
    Orders getOrdersById(Integer id);
    Orders getOrdersById2(Integer id);

    @Select("select * from orders where uid=#{uid};")
    List<Orders> getOrdersByUid(Integer uid);

}
